emoji: Start search on the first character
authorMatthias Clasen <mclasen@redhat.com>
Sun, 13 Aug 2017 11:49:13 +0000 (07:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Aug 2017 11:51:33 +0000 (07:51 -0400)
There is no need to wait for a longer prefix here.
We already display all the content anyway, it will
only get less.

gtk/gtkemojichooser.c

index a26e7dc7fed5665e1ed5db40dcffece7ef18e75a..be12a5f7829b7ab2c2a6fe26086a216207761249 100644 (file)
@@ -381,7 +381,7 @@ filter_func (GtkFlowBoxChild *child,
   text = gtk_entry_get_text (GTK_ENTRY (chooser->search_entry));
   emoji_data = (GVariant *) g_object_get_data (G_OBJECT (child), "emoji-data");
 
-  if (text[0] == 0 || text[1] == 0)
+  if (text[0] == 0)
     goto out;
 
   if (!emoji_data)